package com.lingo.ffmpegdemo.springdemo.demo;

import com.lingo.ffmpegdemo.springdemo.HelloConfiguration;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

/**
 * @Author watson
 * @Date 2022/6/8 20:14
 * @Description: TODO
 * @Version 1.0
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = MapperAutoConfig.class)
//只将MapperAutoConfig类纳入测试环境的Spring容器中，
//或@ContextConfiguration(classes = {HelloConfiguration.class})
public class DemoApplicationTest {

    @Resource
    CountryMapper countryMapper;

    /**
     * @Author haien
     * @Description 扫描不到CountryMapper
     * @Date 2019/6/11
     * @Param []
     * @return void
     **/
    @Test
    public void contextLoads(){
        System.out.println(countryMapper.getClass());
    }
}

